import { Component } from '@angular/core';
import {FormGroup, FormControl} from '@angular/forms';


const today = new Date();
const month = today.getMonth();
const year = today.getFullYear();



@Component({
  selector: 'app-page-home,',
  templateUrl: './page-home.component.html',
  styleUrls: ['./page-home.component.css']
})

export class PageHomeComponent {
  campaignOne = new FormGroup({
    start: new FormControl(new Date(year, month, 13)),
    end: new FormControl(new Date(year, month, 16)),
  });
  campaignTwo = new FormGroup({
    start: new FormControl(new Date(year, month, 15)),
    end: new FormControl(new Date(year, month, 19)),
  });
  workList = [
    {companyName:"阿里巴巴",job:"C++程序员",companyTelephone:"17607948748",pay:"6000",number:"20-99人",location:"杭州市 余杭区",exp:"经验不限",recruiter:"苏先生高级后端工程师"},
    {companyName:"腾讯",job:"Java后端开发",companyTelephone:"17612345678",pay:"5000",number:"20-99人",location:"深圳市 龙华区",exp:"1-3年",recruiter:"赵先生人事专员"}
  ]

  houseList=[
       {title: "房源1", type: "整租", contact: "13812345678", price: "2500", rooms: "1室1厅", location: "北京市 朝阳区", experience: "一年起租", agent: "李先生房产经纪人"},
       {title: "房源2", type: "合租", contact: "13998765432", price: "1800", rooms: "3室2厅", location: "上海市 浦东新区",experience: "支持短租",agen: "王小姐房屋中介"},
       {title: "房源3", type: "整租", contact: "13655556666", price: "3200", rooms: "2室1厅", location: "广州市 天河区", experience: "半年起租", agent: "张先生房产经纪人"},
  ]
}


